home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 January: Mac OS SDK / Dev.CD Jan 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / PInterfaces / GXFonts.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  6.3 KB  |  108 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        GXFonts.p
  3.  
  4.      Contains:    QuickDraw GX font routine interfaces.
  5.  
  6.      Version:    Technology:    Quickdraw GX 1.1
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT GXFonts;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __GXFONTS__}
  27. {$SETC __GXFONTS__ := 1}
  28.  
  29. {$I+}
  30. {$SETC GXFontsIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __CONDITIONALMACROS__}
  34. {$I ConditionalMacros.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __GXMATH__}
  37. {$I GXMath.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __GXTYPES__}
  40. {$I GXTypes.p}
  41. {$ENDC}
  42. {$IFC UNDEFINED __SCALERSTREAMTYPES__}
  43. {$I ScalerStreamTypes.p}
  44. {$ENDC}
  45.  
  46.  
  47. {$PUSH}
  48. {$ALIGN MAC68K}
  49. {$LibExport+}
  50.  
  51. FUNCTION GXNewFont(storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute): gxFont; C;
  52. FUNCTION GXGetFont(fontID: gxFont; VAR reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFontStorageTag; C;
  53. FUNCTION GXFindFont(storage: gxFontStorageTag; reference: gxFontStorageReference; VAR attributes: gxFontAttribute): gxFont; C;
  54. PROCEDURE GXSetFont(fontID: gxFont; storage: gxFontStorageTag; reference: gxFontStorageReference; attributes: gxFontAttribute); C;
  55. PROCEDURE GXDisposeFont(fontID: gxFont); C;
  56. PROCEDURE GXChangedFont(fontID: gxFont); C;
  57. FUNCTION GXGetFontFormat(fontID: gxFont): gxFontFormatTag; C;
  58. FUNCTION GXGetDefaultFont: gxFont; C;
  59. FUNCTION GXSetDefaultFont(fontID: gxFont): gxFont; C;
  60. FUNCTION GXFindFonts(familyID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; {CONST}VAR text: UInt8; index: LONGINT; count: LONGINT; VAR fonts: gxFont): LONGINT; C;
  61. FUNCTION GXCountFontGlyphs(fontID: gxFont): LONGINT; C;
  62. FUNCTION GXCountFontTables(fontID: gxFont): LONGINT; C;
  63. FUNCTION GXGetFontTable(fontID: gxFont; index: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  64. FUNCTION GXFindFontTable(fontID: gxFont; tableTag: gxFontTableTag; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  65. FUNCTION GXGetFontTableParts(fontID: gxFont; index: LONGINT; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR tableTag: gxFontTableTag): LONGINT; C;
  66. FUNCTION GXFindFontTableParts(fontID: gxFont; tableTag: gxFontTableTag; offset: LONGINT; length: LONGINT; tableData: UNIV Ptr; VAR index: LONGINT): LONGINT; C;
  67. FUNCTION GXSetFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; length: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  68. FUNCTION GXSetFontTableParts(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag; offset: LONGINT; oldLength: LONGINT; newLength: LONGINT; tableData: UNIV Ptr): LONGINT; C;
  69. FUNCTION GXDeleteFontTable(fontID: gxFont; index: LONGINT; tableTag: gxFontTableTag): LONGINT; C;
  70. FUNCTION GXCountFontNames(fontID: gxFont): LONGINT; C;
  71. FUNCTION GXGetFontName(fontID: gxFont; index: LONGINT; VAR name: gxFontName; VAR platform: gxFontPlatform; VAR script: gxFontScript; VAR language: gxFontLanguage; VAR text: UInt8): LONGINT; C;
  72. FUNCTION GXFindFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; VAR text: UInt8; VAR index: LONGINT): LONGINT; C;
  73. FUNCTION GXSetFontName(fontID: gxFont; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage; length: LONGINT; {CONST}VAR text: UInt8): LONGINT; C;
  74. FUNCTION GXDeleteFontName(fontID: gxFont; index: LONGINT; name: gxFontName; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  75. FUNCTION GXNewFontNameID(fontID: gxFont): gxFontName; C;
  76. FUNCTION GXCountFontEncodings(fontID: gxFont): LONGINT; C;
  77. FUNCTION GXGetFontEncoding(fontID: gxFont; index: LONGINT; VAR script: gxFontScript; VAR language: gxFontLanguage): gxFontPlatform; C;
  78. FUNCTION GXFindFontEncoding(fontID: gxFont; platform: gxFontPlatform; script: gxFontScript; language: gxFontLanguage): LONGINT; C;
  79. FUNCTION GXApplyFontEncoding(fontID: gxFont; index: LONGINT; VAR length: LONGINT; {CONST}VAR text: UInt8; count: LONGINT; VAR glyphs: UInt16; VAR was16Bit: CHAR): LONGINT; C;
  80. FUNCTION GXCountFontVariations(fontID: gxFont): LONGINT; C;
  81. FUNCTION GXFindFontVariation(fontID: gxFont; variationTag: gxFontVariationTag; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): LONGINT; C;
  82. FUNCTION GXGetFontVariation(fontID: gxFont; index: LONGINT; VAR minValue: Fixed; VAR defaultValue: Fixed; VAR maxValue: Fixed; VAR name: gxFontName): gxFontVariationTag; C;
  83. FUNCTION GXCountFontInstances(fontID: gxFont): LONGINT; C;
  84. FUNCTION GXGetFontInstance(fontID: gxFont; index: LONGINT; VAR variation: gxFontVariation): gxFontName; C;
  85. FUNCTION GXSetFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName; {CONST}VAR variation: gxFontVariation): LONGINT; C;
  86. FUNCTION GXDeleteFontInstance(fontID: gxFont; index: LONGINT; name: gxFontName): LONGINT; C;
  87. FUNCTION GXCountFontDescriptors(fontID: gxFont): LONGINT; C;
  88. FUNCTION GXGetFontDescriptor(fontID: gxFont; index: LONGINT; VAR descriptorValue: Fixed): gxFontDescriptorTag; C;
  89. FUNCTION GXFindFontDescriptor(fontID: gxFont; descriptorTag: gxFontDescriptorTag; VAR descriptorValue: Fixed): LONGINT; C;
  90. FUNCTION GXSetFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag; descriptorValue: Fixed): LONGINT; C;
  91. FUNCTION GXDeleteFontDescriptor(fontID: gxFont; index: LONGINT; descriptorTag: gxFontDescriptorTag): LONGINT; C;
  92. FUNCTION GXCountFontFeatures(fontID: gxFont): LONGINT; C;
  93. FUNCTION GXGetFontFeature(fontID: gxFont; index: LONGINT; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; VAR settings: gxFontFeatureSetting; VAR feature: gxFontFeature): gxFontName; C;
  94. FUNCTION GXFindFontFeature(fontID: gxFont; feature: gxFontFeature; VAR flags: gxFontFeatureFlag; VAR settingCount: LONGINT; VAR settings: gxFontFeatureSetting; VAR index: LONGINT): gxFontName; C;
  95. FUNCTION GXGetFontDefaultFeatures(fontID: gxFont; VAR features: gxRunFeature): LONGINT; C;
  96. PROCEDURE GXFlattenFont(source: gxFont; VAR stream: scalerStream; VAR block: gxSpoolBlock); C;
  97.  
  98. {$ALIGN RESET}
  99. {$POP}
  100.  
  101. {$SETC UsingIncludes := GXFontsIncludes}
  102.  
  103. {$ENDC} {__GXFONTS__}
  104.  
  105. {$IFC NOT UsingIncludes}
  106.  END.
  107. {$ENDC}
  108.